PreviousNextTracker indexSee it online !

(42/314) 1615873 - Editing Javascript causes CPU spike

I'm getting a drastic CPU spike when loading the effects.js (attatched) file from the script.aculo.us (http://script.aculo.us) library on my work machine. The CPU usage then hovers around 50% and only returns to normal after exiting JEdit.

At work I run JEdit 4.3pre8 (but this was occurring on the last stable release too) under Java 1.5.0_08 on a Windows XP box with the following plugins installed:

Ant Farm1.5.4Loaded
AntPlugin1.6.5.1Loaded
Archive0.4.2Loaded
Beauty0.2.1Loaded
BufferList1.1Loaded
BufferTabs0.8.3Loaded
Code2HTML0.5Loaded
Common Controls0.9.1Loaded
Console4.3.0Loaded
CssEditor0.4Loaded
ErrorList1.4.2Loaded
FTP0.8Loaded
Info Viewer1.5.9Loaded
Jakarta Commons0.4.4Loaded
JDiff Plugin1.5.1Loaded
Latest Version Check1.5Loaded
PHPParserPlugin1.2.3Loaded
Project Viewer2.1.3.5Loaded
QuickNotepad4.3Loaded
SideKick0.6.7Loaded
SQL1.03Loaded
XercesPlugin2.8.0Loaded
XML2.0.4Loaded

Submitted rev01001111 - 2006-12-14 - 16:39:12z Assigned daleanson
Priority 5 Category None
Status Open Group None
Resolution Duplicate Visibility No

Comments

2006-12-14 - 16:55:28z
kpouer
Logged In: YES
user_id=285591
Originator: NO

I think it is related with bug 1610416.
If you are at 50% cpu, you must have a dual core, isn't it ?
2006-12-19 - 23:20:22z
daleanson
Logged In: YES
user_id=187628
Originator: NO

Yes, this is the same bug as 1610416, which I haven't figured out yet.
2006-12-21 - 16:18:28z
daleanson
Logged In: YES
user_id=187628
Originator: NO

Reopening this one -- it is not the same as 1610416. I've got a fix for 1610416, but it doesn't fix this one.

Technically, this isn't a bug, but practically, it is. The parser will complete on the attached effects.js file... eventually. Give it a couple of hours or so. Obviously, that's not going to happen in real life, so I'll continue to work on this.

Attachments

2006-12-14 - 16:39:12z
rev01001111
effects.js

effects.js file